/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.given.designpatterns.structural.adapter;

/**
 *
 * @author bassoncj
 */
public class TemperatureInfoFactory {
    private static TemperatureInfoFactory temperatureInfoFactory = null;
    
    private TemperatureInfoFactory(){
    }
    
    public synchronized static TemperatureInfoFactory getInstance(){
        if(temperatureInfoFactory == null){
            temperatureInfoFactory = new TemperatureInfoFactory();
        }
        return temperatureInfoFactory;
    }
    
    public TemperatureInfo getTemperatureInfo(){
        return new TemperatureClassReporter();
    }
}
